package com.charging.system.domain;

import java.math.BigDecimal;

import com.charging.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.charging.common.annotation.Excel;

/**
 * 电卡管理对象 kx_card
 *
 * @author charging
 * @date 2024-04-19
 */
public class KxCard extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 电卡id */
    private Long cardId;

    /** 卡号 */
    @Excel(name = "卡号")
    private String cardNo;

    /** 电卡余额 */
    @Excel(name = "电卡余额")
    private BigDecimal balance;

    /** 赠送金额 */
    @Excel(name = "赠送金额")
    private BigDecimal give;

    /** 持卡人姓名 */
    @Excel(name = "持卡人姓名")
    private String name;

    /** 持卡人电话 */
    @Excel(name = "持卡人电话")
    private String phone;

    /** 电卡状态 */
    @Excel(name = "电卡状态")
    private Integer status;

    /** 金额变动次数 */
    @Excel(name = "金额变动次数")
    private Long rechargeTimes;

    /** 充电次数 */
    @Excel(name = "充电次数")
    private Long chargingTimes;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setCardId(Long cardId)
    {
        this.cardId = cardId;
    }

    public Long getCardId()
    {
        return cardId;
    }
    public void setCardNo(String cardNo)
    {
        this.cardNo = cardNo;
    }

    public String getCardNo()
    {
        return cardNo;
    }
    public void setBalance(BigDecimal balance)
    {
        this.balance = balance;
    }

    public BigDecimal getBalance()
    {
        return balance;
    }
    public void setGive(BigDecimal give)
    {
        this.give = give;
    }

    public BigDecimal getGive()
    {
        return give;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }
    public void setRechargeTimes(Long rechargeTimes)
    {
        this.rechargeTimes = rechargeTimes;
    }

    public Long getRechargeTimes()
    {
        return rechargeTimes;
    }
    public void setChargingTimes(Long chargingTimes)
    {
        this.chargingTimes = chargingTimes;
    }

    public Long getChargingTimes()
    {
        return chargingTimes;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cardId", getCardId())
            .append("cardNo", getCardNo())
            .append("balance", getBalance())
            .append("give", getGive())
            .append("name", getName())
            .append("phone", getPhone())
            .append("status", getStatus())
            .append("rechargeTimes", getRechargeTimes())
            .append("chargingTimes", getChargingTimes())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
